<?php
/*
 * Created on Dec 2, 2010
 *
 * To change the template for this generated file go to
 * Window - Preferences - PHPeclipse - PHP - Code Templates
 */
class LinkDomain
{
	private $kind;
	
	private $id;
	private $advertiserId;
	
	private $name;
	private $isActive;
	
	private $destinationUrl;
	private $description;
	
	private $linkType;

	private $startDate;
	private $endDate;
	
	private $imageAltText;
	
	private $availability;
	private $authorship;
	private $promotionType;
	private $duration;
	private $createDate;
	
	private $impressionTrackingUrl;
	private $clickTrackingUrl;
	
	private $specialOffers;
	private $epcSevenDayAverage;
	private $epcNinetyDayAverage;
	
	public function LinkDomain()
	{
	}
	
	public function setEpcNinetyDayAverage($epcNinetyDayAverage)
	{
		$this->epcNinetyDayAverage = $epcNinetyDayAverage;
	}
	
	public function getEpcNinetyDayAverage()
	{
		return $this->epcNinetyDayAverage;
	}
	
	public function setEpcSevenDayAverage($epcSevenDayAverage)
	{
		$this->epcSevenDayAverage = $epcSevenDayAverage;
	}
	
	public function getEpcSevenDayAverage()
	{
		return $this->epcSevenDayAverage;
	}	
	
	public function setSpecialOffers($specialOffers)
	{
		$this->specialOffers = $specialOffers;
	}
	
	public function getSpecialOffers()
	{
		return $this->specialOffers;
	}
	
	
	public function setClickTrackingUrl($clickTrackingUrl)
	{
		$this->clickTrackingUrl = $clickTrackingUrl;
	}
	
	public function getClickTrackingUrl()
	{
		return $this->clickTrackingUrl;
	}
	
	public function setImpressionTrackingUrl($impressionTrackingUrl)
	{
		$this->impressionTrackingUrl = $impressionTrackingUrl;
	}
	
	public function getImpressionTrackingUrl()
	{
		return $this->impressionTrackingUrl;
	}
	
	public function setCreateDate($createDate)
	{
		$this->createDate = $createDate;
	}
	
	public function getCreateDate()
	{
		return $this->createDate;
	}	
	
	public function setDuration($duration)
	{
		$this->duration = $duration;
	}
	
	public function getDuration()
	{
		return $this->duration;
	}
	
	public function setPromotionType($promotionType)
	{
		$this->promotionType = $promotionType;
	}
	
	public function getPromotionType()
	{
		return $this->promotionType;
	}
	
	public function setAuthorship($authorship)
	{
		$this->authorship = $authorship;
	}
	
	public function getAuthorship()
	{
		return $this->authorship;
	}
	
	public function setAvailability($availability)
	{
		$this->availability = $availability;
	}
	
	public function getAvailability()
	{
		return $this->availability;
	}
	
	public function setKind($kind)
	{
		$this->kind = $kind;
	}
	
	public function getKind()
	{
		return $this->kind;
	}
	
	public function setId($id)
	{
		$this->id = $id;
	}
	
	public function getId()
	{
		return $this->id;
	}
	
	public function setAdvertiserId($advertiserId)
	{
		$this->advertiserId = $advertiserId;
	}
	
	public function getAdvertiserId()
	{
		return $this->advertiserId;
	}
	
	public function setName($name)
	{
		$this->name = $name;
	}
	
	public function getName()
	{
		return $this->name;
	}
	
	public function setDestinationUrl($destinationUrl)
	{
		$this->destinationUrl = $destinationUrl;
	}
	
	public function getDestinationUrl()
	{
		return $this->destinationUrl;
	}
	
	public function setDescription($description)
	{
		$this->description = $description;
	}
	
	public function getDescription()
	{
		return $this->description;
	}

	public function setLinkType($linkType)
	{
		$this->linkType = $linkType;
	}
	
	public function getLinkType()
	{
		return $this->linkType;
	}
	
	public function setStartDate($startDate)
	{
		$this->startDate = $startDate;
	}
	
	public function getStartDate()
	{
		return $this->startDate;
	}
	
	public function setEndDate($endDate)
	{
		$this->endDate = $endDate;
	}
	
	public function getEndDate()
	{
		return $this->endDate;
	}
	
	public function setImageAltText($imageAltText)
	{
		$this->imageAltText = $imageAltText;
	}
	
	public function getImageAltText()
	{
		return $this->imageAltText;
	}
	
	public function setIsActive($isActive)
	{
		$this->isActive = $isActive;
	}
	
	public function getIsActive()
	{
		return $this->isActive;
	}
	
	/* Price cut on the purchase. The amount of money.
	 * @return double
	 */
	public function getPriceCutAmount()
	{
		if(is_object($this->specialOffers) && is_object($this->specialOffers->priceCut)){
			return $this->specialOffers->priceCut->amount;			
		}
		
		return 0;
	}
	
	/* The 3-letter code of the currency in question.
	 *@return string
	 */
	public function getPriceCutCurrencyCode()
	{
		if(is_object($this->specialOffers) && is_object($this->specialOffers->priceCut)){
			return $this->specialOffers->priceCut->currencyCode;			
		}
		
		return 0;
	}
	
	/* Price cut on the purchase. The amount of money.
	 * @return double
	 */
	public function getPriceCutMinAmount()
	{
		if(is_object($this->specialOffers) && is_object($this->specialOffers->priceCutMin)){
			return $this->specialOffers->priceCutMin->amount;			
		}
		
		return 0;
	}
	
	/* The 3-letter code of the currency in question.
	 *@return string
	 */
	public function getPriceCutMinCurrencyCode()
	{
		if(is_object($this->specialOffers) && is_object($this->specialOffers->priceCutMin)){
			return $this->specialOffers->priceCutMin->currencyCode;			
		}
		
		return '';
	}
	
	/* Whether there is free shipping
	 *@return boolean
	 */
	public function getFreeShipping()
	{
		if(is_object($this->specialOffers) && isset($this->specialOffers->freeShipping)){
			return $this->specialOffers->freeShipping;			
		}
		
		return 0;
	}
	
	/* Minimum purchase amount for free shipping promotion. The amount of money.
	 *@return double
	 */
	public function getFreeShippingMinAmount()
	{
		if(is_object($this->specialOffers) && is_object($this->specialOffers->freeShippingMin)){
			return $this->specialOffers->freeShippingMin->amount;			
		}
		
		return '';
	}
	
	/* Minimum purchase amount for free shipping promotion. The 3-letter code of the currency in question.
	 *@return string
	 */
	public function getFreeShippingMinCurrencyCode()
	{
		if(is_object($this->specialOffers) && is_object($this->specialOffers->freeShippingMin)){
			return $this->specialOffers->freeShippingMin->currencyCode;			
		}
		
		return '';
	}	
	
	/* Percent off on the purchase
	 *@return double
	 */
	public function getPercentOff()
	{
		if(is_object($this->specialOffers) && isset($this->specialOffers->percentOff)){
			return $this->specialOffers->percentOff;			
		}
		
		return 0;
	}
	
	/* Minimum purchase amount for percent off promotion. The amount of money.
	 *@return double
	 */
	public function getPercentOffMinAmount()
	{
		if(is_object($this->specialOffers) && is_object($this->specialOffers->percentOffMin)){
			return $this->specialOffers->percentOffMin->amount;			
		}
		
		return 0;
	}
	
	/* Minimum purchase amount for percent off promotion. The 3-letter code of the currency in question.
	 *@return string
	 */
	public function getPercentOffMinCurrencyCode()
	{
		if(is_object($this->specialOffers) && is_object($this->specialOffers->percentOffMin)){
			return $this->specialOffers->percentOffMin->currencyCode;			
		}
		
		return '';
	}
	
	public function getEpcSevenDayAverageAmount()
	{
		if(is_object($this->epcSevenDayAverage) && isset($this->epcSevenDayAverage->amount)){
			return $this->epcSevenDayAverage->amount;			
		}
		
		return '';
	}
	
	public function getEpcSevenDayAverageCurrencyCode()
	{
		if(is_object($this->epcSevenDayAverage) && isset($this->epcSevenDayAverage->currencyCode)){
			return $this->epcSevenDayAverage->currencyCode;			
		}
		
		return '';
	}
	
	public function getEpcNinetyDayAverageAmount()
	{
		if(is_object($this->epcNinetyDayAverage) && isset($this->epcNinetyDayAverage->amount)){
			return $this->epcNinetyDayAverage->amount;			
		}
		
		return '';
	}
	
	public function getEpcNinetyDayAverageCurrencyCode()
	{
		if(is_object($this->epcNinetyDayAverage) && isset($this->epcNinetyDayAverage->currencyCode)){
			return $this->epcNinetyDayAverage->currencyCode;			
		}
		
		return '';
	}
	
	/* Whether there is a free gift
	 *@return boolean
	 */
	public function getFreeGift()
	{
		if(is_object($this->specialOffers) && isset($this->specialOffers->freeGift)){
			return $this->specialOffers->freeGift;			
		}
		
		return 0;
	}
	
	/* List of promotion code associated with the link
	 *@return string
	 */	
	public function getPromotionCodes()
	{
		if(is_object($this->specialOffers) && is_array($this->specialOffers->promotionCodes)){
			return implode(',', $this->specialOffers->promotionCodes);
		}
		
		return '';
	}
}
?>
